    <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?><!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico" >
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/public/js/html5shiv.js"></script>
    <script type="text/javascript" src="/public/js/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/public/plugins/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/public/plugins/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/public/plugins/Hui-iconfont/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/public/plugins/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/public/plugins/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="/public/js/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>快方管理后台</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
</head>
<body class="big-page">
<header class="navbar-wrapper">
    <div class="navbar navbar-fixed-top">
        <div class="container-fluid cl"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="/">快方后台管理系统</a> <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="/">快方</a>
            <span class="logo navbar-slogan f-l mr-10 hidden-xs"></span>
            <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
            <nav class="nav navbar-nav" id="top-navbar">
                <ul class="cl">
<!--                    --><?php //foreach ($menus as $main_menu): ?>
<!--                    <li class="dropDown dropDown_hover"><a href="javascript:void(0);" class="dropDown_A"><i class="Hui-iconfont">--><?php //echo '' ?><!--</i> --><?php //echo $main_menu['name'] ?><!-- <i class="Hui-iconfont">&#xe6d5;</i></a>-->
<!--                        <ul class="dropDown-menu menu radius box-shadow">-->
<!--                            --><?php //foreach ($main_menu['items'] as $sub_menu): ?>
<!--                            <li><a data-href="--><?php //echo $sub_menu['name'] ?><!--" data-title="--><?php //echo $sub_menu['title'] ?><!--" href="javascript:void(0);"> --><?php //echo $sub_menu['title'] ?><!--</a></li>-->
<!--                            --><?php //endforeach ?>
<!--                        </ul>-->
<!--                    </li>-->
<!--                    --><?php //endforeach ?>

                    <?php
                    function write_menus(&$rules)
                    {
                        foreach ($rules as $rule)
                        {
                            if (isset($rule['items']) && $rule['items'])
                            {
                                if ($rule['level'] == 1)
                                {
                                    echo "<li class=\"dropDown dropDown_hover\"><a href=\"#\" class=\"dropDown_A\">{$rule['title']} <i class=\"Hui-iconfont\">&#xe6d5;</i></a><ul class=\"dropDown-menu menu radius box-shadow\">";
                                }
                                else
                                {
                                    echo "<li><a href=\"#\">{$rule['title']}<i class=\"arrow Hui-iconfont\">&#xe6d7;</i></a><ul class=\"menu\">";
                                }
                                write_menus($rule['items']);
                                echo '</ul></li>';
                            }
                            else
                            {
                                echo "<li><a href=\"javascript:void(0);\" data-href=\"{$rule['name']}\" data-title=\"{$rule['title']}\">{$rule['title']}</a></li>";
                            }
                        }
                    }
                    write_menus($rules);
                    ?>
                </ul>
            </nav>
            <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                <ul class="cl">
                    <?php $user = $_SESSION['user'] ?>
                    <li><?php echo $user['mobile'] ?></li>
                    <li class="dropDown dropDown_hover">
                        <a href="#" class="dropDown_A"><?php echo $user['nickname'] ?> <i class="Hui-iconfont">&#xe6d5;</i></a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="javascript:;">个人信息</a></li>
                            <li><a href="/login/logout">退出</a></li>
                        </ul>
                    </li>
<!--                    <li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>-->
                </ul>
            </nav>
        </div>
    </div>
</header>
<aside class="Hui-aside">
    <div class="menu_dropdown bk_2">
        <?php
        function write_left_menus(&$rules)
        {
            foreach ($rules as $rule)
            {
                if (isset($rule['items']) && $rule['items'])
                {
                    if ($rule['level'] == 1)
                    {
                        echo "<dl id=\"menu-article\"><dt><i class=\"Hui-iconfont\">&#xe616;</i> {$rule['title']}<i class=\"Hui-iconfont menu_dropdown-arrow\">&#xe6d5;</i></dt>
            <dd><ul>";
                    }
//                    else
//                    {
//                        echo "<li><a href=\"#\">{$rule['title']}<i class=\"arrow Hui-iconfont\">&#xe6d7;</i></a><ul class=\"menu\">";
//                    }
                    write_left_menus($rule['items']);
                    if ($rule['level'] == 1)
                    {
                        echo '</ul></dd></dl>';
                    }
                }
                else
                {
                    echo "<li><a data-href=\"{$rule['name']}\" data-title=\"{$rule['title']}\" href=\"javascript:void(0)\">{$rule['title']}</a></li>";
                    //echo "<li><a href=\"javascript:void(0);\" data-href=\"{$rule['name']}\" data-title=\"{$rule['title']}\">{$rule['title']}</a></li>";
                }
            }
        }
        write_left_menus($rules);
        ?>
<!--        --><?php //foreach ($menus as $main_menu): ?>
<!--        <dl id="menu-article">-->
<!--            <dt><i class="Hui-iconfont">&#xe616;</i> --><?php //echo $main_menu['name'] ?><!--<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>-->
<!--            <dd>-->
<!--                --><?php //foreach ($main_menu['items'] as $sub_menu): ?>
<!--                --><?php //if(empty($sub_menu['condition'])) $condition = true; else { @(eval('$condition=(' . $sub_menu['condition'] . ');')); } ?>
<!--                --><?php //if ($condition): ?>
<!--                <ul>-->
<!--                    <li><a data-href="--><?php //echo $sub_menu['name'] ?><!--" data-title="--><?php //echo $sub_menu['title'] ?><!--" href="javascript:void(0)">--><?php //echo $sub_menu['title'] ?><!--</a></li>-->
<!--                </ul>-->
<!--                --><?php //endif ?>
<!--                --><?php //endforeach ?>
<!--            </dd>-->
<!--        </dl>-->
<!--        --><?php //endforeach ?>
    </div>
</aside>
<section class="Hui-article-box">
    <div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
        <div class="Hui-tabNav-wp">
            <ul id="min_title_list" class="acrossTab cl">
                <li class="active">
                    <span title="我的桌面" data-href="/home/welcome">我的桌面</span>
                    <em></em></li>
            </ul>
        </div>
        <div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a></div>
    </div>
    <div id="iframe_box" class="Hui-article">
        <div class="show_iframe">
            <div style="display:none" class="loading"></div>
            <iframe scrolling="yes" frameborder="0" src="/home/welcome"></iframe>
        </div>
    </div>
</section>

<div class="contextMenu" id="Huiadminmenu">
    <ul>
        <li id="closethis">关闭当前 </li>
        <li id="closeall">关闭全部 </li>
    </ul>
</div>
<script type="text/javascript" src="/public/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/plugins/layer/layer.js"></script>
<script type="text/javascript" src="/public/plugins/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/public/plugins/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/public/plugins/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
</body>
</html>
